<ion-view view-title="会员专享">
	<!--一定要手动加导航栏-->
	<ion-nav-bar>
		<ion-nav-back-button>
		</ion-nav-back-button>
	</ion-nav-bar>
	<!--通过副标题来定位-->
	<div class="bar bar-subheader line-bottom padding-0">
		<!--描述：顶部模块-->
		<div class="row top">
			<div class="col padding-0 font-middle-my" on-tap="activeTab(0)">
				<div ng-class="selectTab==0?'top-activated':''">商品推荐</div>
			</div>
			<div class="col padding-0 font-middle-my" on-tap="activeTab(1);closeSideMenu()">
				<div ng-class="selectTab==1?'top-activated':''">快递查询</div>
			</div>
			<div class="col padding-0 font-middle-my" on-tap="onshow_url('unsalablepro');closeSideMenu()">
				滞销产品
			</div>
			<!--<div class="col padding-0 font-middle-my" on-tap="onshow_url('transfer')">
                	经营转让
            </div>-->
			<div class="col padding-0 font-middle-my" on-tap="onshow_outLink();closeSideMenu()">
				培训支持
			</div>
		</div>
	</div>

	<!-- 侧边菜单 -->
	<ion-side-menus>
		<!-- 中间内容 -->
		<ion-side-menu-content>
			<!--描述：滑动块-->
			<ion-content scroll="false" class="has-header has-subheader">
				<!--描述：下拉刷新-->
				<ion-slide-box delegate-handle="tab-handle" on-touch="onTouch()" on-release="onRelease()" draw-slide="false" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
					<!--描述：2、商品推荐-->
					<ion-slide>
						<li class="item padding-5 font-middle-my stable-bg text-center" ng-if="listData.data">
							共<span class="assertive">{{count}}</span>件商品
							<span class="right-zhang" on-tap="rightSideMenu()">筛选<i class="iconfont icon-shaixuan"></i></span>
						</li>
						<div class="font-large-my font-gray-my text-center padding" ng-if="listData.data==null||listData.data.length==0">
							<i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的数据.....
						</div>
						
						<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
							<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
							<div ng-repeat="obj in listData.data">
								<div class="left-zhang margin-bottom-10 light-bg padding-5 text-center" style="width: 48.5%;" ng-class="{'col-offset-3':$index%2==1}" on-tap="go_productdetail(obj.goods_id)">
									<img src="{{obj.image?obj.image:noImg}}" ng-if="obj.image" style=" height: 7rem;width: 7rem;" />
									<p class="font-large-my ellipsis-2 text-left" style="height: 40px;">{{obj.name}}</p>
									<p class="text-left">
										<span class="assertive assertive font-large-my">{{obj.price|currency:'¥'}}</span>
										<span class="right-zhang font-gray-my font-small-my">月销量：<span class="assertive font-large-my">{{obj.salenumber}}</span></span>
									</p>
								</div>
								<div ng-class="{'clearfix':$index%2==1}"></div>
							</div>
							<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
						</ion-scroll>
					</ion-slide>

					<!--描述：3、快递查询-->
					<ion-slide>
						<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
							<div class="list">
								<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
									<div class="input-label">快递公司：</div>
									<div class="input-value" ng-click="doSelectComp()">{{input.comp_select.comp_name}}</div>
								</div>
								<li class="item item-input">
									<span class="input-label">快递单号：</span>
									<input type="text" placeholder="请输入您的快递单号" ng-model="input.logistics_no" />
								</li>
								<li class="item padding-10 text-center">
									<span class="bian_gray border-radius-my font-middle-my light positive-bg" style="padding:8px 2rem;" on-tap="search_logistics()">查询</span>
								</li>
								<li class="item item-input-inset">
									<i class="icon ion-android-plane font-1rem-my"></i>&nbsp;
									<label class="font-gray-my">最新物流信息</label>
								</li>
								<li class="item item-text-wrap" ng-repeat="logistics in logistics.data">
									<p class="font-middle-my font-gray-my">{{logistics.ftime}}：</p>
									<p class="font-middle-my font-gray-my">{{logistics.context}}</p>
								</li>
								<li class="item padding-0">
									<div class="font-large-my font-gray-my text-center padding" ng-if="logistics.data.length==0||logistics.data==null">
										<i class="icon ion-sad-outline font-1rem-my"></i> 对不起，目前没有最新的物流信息.....
									</div>
								</li>
							</div>
						</ion-scroll>
					</ion-slide>
				</ion-slide-box>
			</ion-content>
		</ion-side-menu-content>


		<!--侧边菜单-->
		<ion-side-menu side="right">
			<ion-content class="has-header has-subheader">
				<ul class="list">
					<li class="item item-input">
						<i class="icon ion-search placeholder-icon"></i><input type="text" placeholder="请输入关键字..." ng-model="input.keywords">
					</li>
					<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
						<div class="input-label">类目</div>
						<div class="input-value" ng-click="doSelectCat()">{{input.recommend.name}}</div>
					</div>
				</ul>
				<div class="row">
					<div class="col"><button class="button button-full button-energized" on-tap="rightSideMenu()">取消</button></div>
					<div class="col"><button class="button button-full button-assertive" on-tap="doSearch();rightSideMenu()">确定</button></div>
				</div>
			</ion-content>
		</ion-side-menu>

	</ion-side-menus>
</ion-view>